<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::curlHttp类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d3/d55/classwheels_1_1curl_http.html">curlHttp</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="../../dd/dc8/classwheels_1_1curl_http-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::curlHttp类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a>&gt;</code></p>
<div class="dynheader">
类 wheels::curlHttp 继承关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../da/d7b/classwheels_1_1curl_http__inherit__graph.png" border="0" usemap="#awheels_1_1curl_http_inherit__map" alt="Inheritance graph"/></div>
<map name="awheels_1_1curl_http_inherit__map" id="awheels_1_1curl_http_inherit__map">
<area shape="rect" title=" " alt="" coords="15,853,226,1659"/>
<area shape="rect" href="../../d7/d64/structwheels_1_1i_file_service.html" title=" " alt="" coords="5,5,236,805"/>
<area shape="poly" title=" " alt="" coords="123,820,123,854,118,854,118,820"/>
</map>
</div>
<div class="dynheader">
wheels::curlHttp 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/dd2/classwheels_1_1curl_http__coll__graph.png" border="0" usemap="#awheels_1_1curl_http_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1curl_http_coll__map" id="awheels_1_1curl_http_coll__map">
<area shape="rect" title=" " alt="" coords="15,853,226,1659"/>
<area shape="rect" href="../../d7/d64/structwheels_1_1i_file_service.html" title=" " alt="" coords="5,5,236,805"/>
<area shape="poly" title=" " alt="" coords="123,820,123,854,118,854,118,820"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a2efcdd910b32509d11ce11909184e572" id="r_a2efcdd910b32509d11ce11909184e572"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2efcdd910b32509d11ce11909184e572">fileRecord_t</a> = std::pair&lt;std::string , std::string&gt;</td></tr>
<tr class="separator:a2efcdd910b32509d11ce11909184e572"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5c5bee54b1a7867660c3bdef808e0b5" id="r_af5c5bee54b1a7867660c3bdef808e0b5"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af5c5bee54b1a7867660c3bdef808e0b5">files_t</a> = std::list&lt;<a class="el" href="#a2efcdd910b32509d11ce11909184e572">fileRecord_t</a> &gt;</td></tr>
<tr class="separator:af5c5bee54b1a7867660c3bdef808e0b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_structwheels_1_1i_file_service"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_types_structwheels_1_1i_file_service')"><img src="../../closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html">wheels::iFileService</a></td></tr>
<tr class="memitem:a4caa50c3e01e22c71bb52d16657c48d0 inherit pub_types_structwheels_1_1i_file_service" id="r_a4caa50c3e01e22c71bb52d16657c48d0"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a> { <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a59b1c41de43229a4e52a1c606fa8cd81">ERR_DOWNLOAD_OSS</a> = -10000
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a557568da9c09c7d18db885715b74fb69">ERR_SYS_VAR</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a72ba8dd7c1d1a10f550a4959d862a241">ERR_CANCEL_TRANSFER</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a519e29bbff6bfe2bd3367baa832a728e">ERR_UNSUPPORTED_PROTOCOL</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a6d5f22ec546b93a49fab7dcf9c189b18">ERR_INIT_CURL</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0ac2924800f7928a074967b04b60b94139">ERR_CONNECT_SVR</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a0bc456b503b6a2f5adf24eb6cbe43845">ERR_FILE_DOWNLOAD_TRANSFER</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a4872446ba63c055e1a31807fd3c4fa34">ERR_FILE_UPLOAD_TRANSFER</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0ac208a4ce08f3a5f4295b17f7b46f4579">ERR_CTX_NULL</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a5b268e5248c078c7cbb7cde62cf324c4">ERR_ALLOC_MEM</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a9242d18f17c2cee6eb4d3a800cc009e0">ERR_CREATE_DEST_FILE</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0aff397765753060ba7ad3fe5388920cd2">ERR_CURL_SET_OPT</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0aa3386d6d37fe9fd850252dfd37b2b741">ERR_USER_OR_PSWD</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a068f0f9561e975a8a13e02ea53597567">ERR_CURL_PERFORM</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0afdb7aed7a2a2ec16100b7631c847de65">ERR_OPEN_LOC_FILE</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a482fce143b86951bbbef6530d46d46ad">ERR_NO_SRC_FILE</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a28822492bef449671e9141752f029ff0">ERR_DESC_NULL</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a3968149e28f9f41001ee7c3ad7fc7446">ERR_EMPTY_URL</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a13660432e6aaf3be08861a993e1ed516">ERR_FILE_NOT_FOUND</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0acdfdd12e96fab9eb13eb90b0b088845d">ERR_ACCESS_NOT_SUPPORT</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0aabda220d3cf6da350f219ab2547770e9">STATUS_TRANS_FINISH</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a172916c3c608d38b12c8c59e814964f3">STATUS_TRANSING</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a162a4d8662445e2d2e5d21d29e222bf8">ERR_INIT_FTP</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0aebf9f08a4e2e6bc291b32e9ae7e6efa3">ERR_DELE_OSS_FILE</a>
, <br />
&#160;&#160;<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0ab1c5ac4e88ff4ec5333e43ecb4f8cc43">ERR_LS_OSS_FILE</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a09b39c7f67f8f42e3466156fde2c4a74">ERR_UPLOAD_OSS</a>
, <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0a1b4ffc5a9b1fe92b4ef2140d02895b78">OK</a> = 0
<br />
 }</td></tr>
<tr class="separator:a4caa50c3e01e22c71bb52d16657c48d0 inherit pub_types_structwheels_1_1i_file_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ad39618e4f910e9a9681cd76578ddfd3d" id="r_ad39618e4f910e9a9681cd76578ddfd3d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad39618e4f910e9a9681cd76578ddfd3d">curlHttp</a> ()</td></tr>
<tr class="separator:ad39618e4f910e9a9681cd76578ddfd3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcfe51e26d099be3f60293b203129557" id="r_afcfe51e26d099be3f60293b203129557"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afcfe51e26d099be3f60293b203129557">~curlHttp</a> ()</td></tr>
<tr class="separator:afcfe51e26d099be3f60293b203129557"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c133a2aae1b9855feeaf9b859d321f0" id="r_a4c133a2aae1b9855feeaf9b859d321f0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4c133a2aae1b9855feeaf9b859d321f0">bufferSize</a> (size_t s) override</td></tr>
<tr class="separator:a4c133a2aae1b9855feeaf9b859d321f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93b79ebe38efd6f8766f03f8c921bf32" id="r_a93b79ebe38efd6f8766f03f8c921bf32"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a93b79ebe38efd6f8766f03f8c921bf32">overtime</a> (long seconds) final</td></tr>
<tr class="separator:a93b79ebe38efd6f8766f03f8c921bf32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21da1d59073f864299d4c9d54683d385" id="r_a21da1d59073f864299d4c9d54683d385"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a21da1d59073f864299d4c9d54683d385">download</a> (const std::string &amp;from, const std::string &amp;dest=&quot;&quot;, bool autoRun=true) override</td></tr>
<tr class="memdesc:a21da1d59073f864299d4c9d54683d385"><td class="mdescLeft">&#160;</td><td class="mdescRight">下载文件操作  <br /></td></tr>
<tr class="separator:a21da1d59073f864299d4c9d54683d385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46aabb0b12d38c092f592615f6ee9a07" id="r_a46aabb0b12d38c092f592615f6ee9a07"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a46aabb0b12d38c092f592615f6ee9a07">download</a> (const std::string &amp;from, const std::string &amp;dest, std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt; cb, bool autoRun=true) override</td></tr>
<tr class="memdesc:a46aabb0b12d38c092f592615f6ee9a07"><td class="mdescLeft">&#160;</td><td class="mdescRight">下载操作函数。操作完成后使用回调函数通知操作结果  <br /></td></tr>
<tr class="separator:a46aabb0b12d38c092f592615f6ee9a07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a275b22033e343e56d479525f9a142506" id="r_a275b22033e343e56d479525f9a142506"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a275b22033e343e56d479525f9a142506">download</a> (const std::string &amp;from, char *buffer, std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt; cb, bool autoRun=true) override</td></tr>
<tr class="memdesc:a275b22033e343e56d479525f9a142506"><td class="mdescLeft">&#160;</td><td class="mdescRight">将数据下载到内存中  <br /></td></tr>
<tr class="separator:a275b22033e343e56d479525f9a142506"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac018be0b469a6a360472db8f4afa4fe5" id="r_ac018be0b469a6a360472db8f4afa4fe5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac018be0b469a6a360472db8f4afa4fe5">download</a> (const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;from, const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;dest, bool autoRun=true) override</td></tr>
<tr class="memdesc:ac018be0b469a6a360472db8f4afa4fe5"><td class="mdescLeft">&#160;</td><td class="mdescRight">批量下载文件。  <br /></td></tr>
<tr class="separator:ac018be0b469a6a360472db8f4afa4fe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd2cb7a335829c91d308e629e57d0fe6" id="r_abd2cb7a335829c91d308e629e57d0fe6"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abd2cb7a335829c91d308e629e57d0fe6">download</a> (const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;from, const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;dest, std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt; cb, bool autoRun=true) override</td></tr>
<tr class="memdesc:abd2cb7a335829c91d308e629e57d0fe6"><td class="mdescLeft">&#160;</td><td class="mdescRight">批量下载文件，使用回调函数通知操作结果和过程  <br /></td></tr>
<tr class="separator:abd2cb7a335829c91d308e629e57d0fe6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a869dd5ae61ecc763d19a2b316b82e021" id="r_a869dd5ae61ecc763d19a2b316b82e021"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a869dd5ae61ecc763d19a2b316b82e021">upload</a> (const std::string &amp;file, const std::string &amp;remote_file, bool autoRun=true) override</td></tr>
<tr class="memdesc:a869dd5ae61ecc763d19a2b316b82e021"><td class="mdescLeft">&#160;</td><td class="mdescRight">上传文件到服务器  <br /></td></tr>
<tr class="separator:a869dd5ae61ecc763d19a2b316b82e021"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86eb9847d8ec4cd0cee921107d12686d" id="r_a86eb9847d8ec4cd0cee921107d12686d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a86eb9847d8ec4cd0cee921107d12686d">upload</a> (const std::string &amp;file, const std::string &amp;remote_file, std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t)&gt; cb, bool autoRun=true) override</td></tr>
<tr class="separator:a86eb9847d8ec4cd0cee921107d12686d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabdbb4e62c62eec227a2be7fcbbb9897" id="r_aabdbb4e62c62eec227a2be7fcbbb9897"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aabdbb4e62c62eec227a2be7fcbbb9897">upload</a> (const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;from, bool autoRun=true) override</td></tr>
<tr class="memdesc:aabdbb4e62c62eec227a2be7fcbbb9897"><td class="mdescLeft">&#160;</td><td class="mdescRight">批量上传操作  <br /></td></tr>
<tr class="separator:aabdbb4e62c62eec227a2be7fcbbb9897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ad84e779905dd36729134990ed315e4" id="r_a6ad84e779905dd36729134990ed315e4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6ad84e779905dd36729134990ed315e4">upload</a> (const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;file, std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t)&gt; cb, bool autoRun) override</td></tr>
<tr class="separator:a6ad84e779905dd36729134990ed315e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a896d85e83b36058f957a9988fa75f385" id="r_a896d85e83b36058f957a9988fa75f385"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a896d85e83b36058f957a9988fa75f385">del</a> (const std::string &amp;rem) override</td></tr>
<tr class="memdesc:a896d85e83b36058f957a9988fa75f385"><td class="mdescLeft">&#160;</td><td class="mdescRight">删除远程文件  <br /></td></tr>
<tr class="separator:a896d85e83b36058f957a9988fa75f385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a007996079e967c2149e3062930e863c3" id="r_a007996079e967c2149e3062930e863c3"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a007996079e967c2149e3062930e863c3">setUser</a> (const std::string &amp;acc, const std::string &amp;pswd) override</td></tr>
<tr class="memdesc:a007996079e967c2149e3062930e863c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置用户名和密码  <br /></td></tr>
<tr class="separator:a007996079e967c2149e3062930e863c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68ba399064b9b5f56c0d85fe407643b4" id="r_a68ba399064b9b5f56c0d85fe407643b4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a68ba399064b9b5f56c0d85fe407643b4">addUrl</a> (const std::string &amp;url) override</td></tr>
<tr class="memdesc:a68ba399064b9b5f56c0d85fe407643b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">指定URL  <br /></td></tr>
<tr class="separator:a68ba399064b9b5f56c0d85fe407643b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a6c6114d060117099988de17487e174" id="r_a2a6c6114d060117099988de17487e174"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2a6c6114d060117099988de17487e174">run</a> () override</td></tr>
<tr class="separator:a2a6c6114d060117099988de17487e174"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9e5217a2b2110049993ce5729860e9a" id="r_af9e5217a2b2110049993ce5729860e9a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af9e5217a2b2110049993ce5729860e9a">run</a> (std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t, int, const std::string &amp;) &gt; cb) override</td></tr>
<tr class="separator:af9e5217a2b2110049993ce5729860e9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a304fe385a4b2f0f38a893494de7ba827" id="r_a304fe385a4b2f0f38a893494de7ba827"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a304fe385a4b2f0f38a893494de7ba827">ls</a> (<a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;rst) override</td></tr>
<tr class="memdesc:a304fe385a4b2f0f38a893494de7ba827"><td class="mdescLeft">&#160;</td><td class="mdescRight">列出远程目录内容  <br /></td></tr>
<tr class="separator:a304fe385a4b2f0f38a893494de7ba827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4238eff714de9c44cb6aed9b5a0f5a1c" id="r_a4238eff714de9c44cb6aed9b5a0f5a1c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4238eff714de9c44cb6aed9b5a0f5a1c">ls</a> (std::function&lt; void(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;) &gt; cb) override</td></tr>
<tr class="separator:a4238eff714de9c44cb6aed9b5a0f5a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeef247fb37efdd445f4f69da0adeca3b" id="r_aeef247fb37efdd445f4f69da0adeca3b"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeef247fb37efdd445f4f69da0adeca3b">access</a> (const std::string &amp;url, int type) override</td></tr>
<tr class="memdesc:aeef247fb37efdd445f4f69da0adeca3b"><td class="mdescLeft">&#160;</td><td class="mdescRight">和linux access函数一样，用来检查文件的可访问性  <br /></td></tr>
<tr class="separator:aeef247fb37efdd445f4f69da0adeca3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4637ba5bdafa422175855e699c4b4cc1" id="r_a4637ba5bdafa422175855e699c4b4cc1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4637ba5bdafa422175855e699c4b4cc1">cd</a> (const std::string &amp;path) override</td></tr>
<tr class="memdesc:a4637ba5bdafa422175855e699c4b4cc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">切换远程目录路径  <br /></td></tr>
<tr class="separator:a4637ba5bdafa422175855e699c4b4cc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adbd8973f289389753695f519d1a892eb" id="r_adbd8973f289389753695f519d1a892eb"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#adbd8973f289389753695f519d1a892eb">size</a> (const std::string &amp;file) override</td></tr>
<tr class="memdesc:adbd8973f289389753695f519d1a892eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">读取远程文件的文件大小  <br /></td></tr>
<tr class="separator:adbd8973f289389753695f519d1a892eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7bf1cb79c4dc4484621de444d1f29b0d" id="r_a7bf1cb79c4dc4484621de444d1f29b0d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7bf1cb79c4dc4484621de444d1f29b0d">on_recv__</a> (const char *data, size_t len, std::shared_ptr&lt; std::ofstream &gt;)</td></tr>
<tr class="separator:a7bf1cb79c4dc4484621de444d1f29b0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_structwheels_1_1i_file_service"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_methods_structwheels_1_1i_file_service')"><img src="../../closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html">wheels::iFileService</a></td></tr>
<tr class="memitem:aaef3e45a097583e13ad0a506f6f16e69 inherit pub_methods_structwheels_1_1i_file_service" id="r_aaef3e45a097583e13ad0a506f6f16e69"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#aaef3e45a097583e13ad0a506f6f16e69">~iFileService</a> ()</td></tr>
<tr class="separator:aaef3e45a097583e13ad0a506f6f16e69 inherit pub_methods_structwheels_1_1i_file_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a0b5f19f4956965fdb7dafb3f23b1cafa" id="r_a0b5f19f4956965fdb7dafb3f23b1cafa"><td class="memItemLeft" align="right" valign="top">static const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0b5f19f4956965fdb7dafb3f23b1cafa">DEFAULT_BUFFER_SIZE</a> = 1024 * 1024 * 5</td></tr>
<tr class="separator:a0b5f19f4956965fdb7dafb3f23b1cafa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5bf97a9d7c213107a2a765f9a47ce42" id="r_ae5bf97a9d7c213107a2a765f9a47ce42"><td class="memItemLeft" align="right" valign="top">static const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae5bf97a9d7c213107a2a765f9a47ce42">DEFAULT_THD_COUNT</a> = 4</td></tr>
<tr class="separator:ae5bf97a9d7c213107a2a765f9a47ce42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e90ecf12420b8445e9c5cc0d6bf6664" id="r_a7e90ecf12420b8445e9c5cc0d6bf6664"><td class="memItemLeft" align="right" valign="top">static const long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7e90ecf12420b8445e9c5cc0d6bf6664">DEFAULT_OVERTIME</a> = -1</td></tr>
<tr class="separator:a7e90ecf12420b8445e9c5cc0d6bf6664"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:af6b3ef69aa0868252bc8deeefa960558" id="r_af6b3ef69aa0868252bc8deeefa960558"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af6b3ef69aa0868252bc8deeefa960558">curlHttp_write_callback</a> (char *ptr, size_t <a class="el" href="#adbd8973f289389753695f519d1a892eb">size</a>, size_t nmemb, void *obj)</td></tr>
<tr class="separator:af6b3ef69aa0868252bc8deeefa960558"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pub_static_methods_structwheels_1_1i_file_service"><td colspan="2" onclick="javascript:dynsection.toggleInherit('pub_static_methods_structwheels_1_1i_file_service')"><img src="../../closed.png" alt="-"/>&#160;静态 Public 成员函数 继承自 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html">wheels::iFileService</a></td></tr>
<tr class="memitem:a963d48b061a3e66bd4b3cd73123262db inherit pub_static_methods_structwheels_1_1i_file_service" id="r_a963d48b061a3e66bd4b3cd73123262db"><td class="memItemLeft" align="right" valign="top">static std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a963d48b061a3e66bd4b3cd73123262db">errMsg</a> (<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a> e)</td></tr>
<tr class="separator:a963d48b061a3e66bd4b3cd73123262db inherit pub_static_methods_structwheels_1_1i_file_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00020">20</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="a2efcdd910b32509d11ce11909184e572" name="a2efcdd910b32509d11ce11909184e572"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2efcdd910b32509d11ce11909184e572">&#9670;&#160;</a></span>fileRecord_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="#a2efcdd910b32509d11ce11909184e572">wheels::curlHttp::fileRecord_t</a> = std::pair&lt;std::string , std::string&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<a id="af5c5bee54b1a7867660c3bdef808e0b5" name="af5c5bee54b1a7867660c3bdef808e0b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5c5bee54b1a7867660c3bdef808e0b5">&#9670;&#160;</a></span>files_t</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="#af5c5bee54b1a7867660c3bdef808e0b5">wheels::curlHttp::files_t</a> = std::list&lt;<a class="el" href="#a2efcdd910b32509d11ce11909184e572">fileRecord_t</a> &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00026">26</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="ad39618e4f910e9a9681cd76578ddfd3d" name="ad39618e4f910e9a9681cd76578ddfd3d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad39618e4f910e9a9681cd76578ddfd3d">&#9670;&#160;</a></span>curlHttp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">curlHttp::curlHttp </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00050">50</a> 行定义.</p>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d55/classwheels_1_1curl_http_ad39618e4f910e9a9681cd76578ddfd3d_cgraph.png" border="0" usemap="#ad3/d55/classwheels_1_1curl_http_ad39618e4f910e9a9681cd76578ddfd3d_cgraph" alt=""/></div>
<map name="ad3/d55/classwheels_1_1curl_http_ad39618e4f910e9a9681cd76578ddfd3d_cgraph" id="ad3/d55/classwheels_1_1curl_http_ad39618e4f910e9a9681cd76578ddfd3d_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,176,32"/>
<area shape="rect" href="../../d3/d55/classwheels_1_1curl_http.html#a2a6c6114d060117099988de17487e174" title=" " alt="" coords="224,5,366,32"/>
<area shape="poly" title=" " alt="" coords="176,16,208,16,208,21,176,21"/>
</map>
</div>

</div>
</div>
<a id="afcfe51e26d099be3f60293b203129557" name="afcfe51e26d099be3f60293b203129557"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcfe51e26d099be3f60293b203129557">&#9670;&#160;</a></span>~curlHttp()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">curlHttp::~curlHttp </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00071">71</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="aeef247fb37efdd445f4f69da0adeca3b" name="aeef247fb37efdd445f4f69da0adeca3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeef247fb37efdd445f4f69da0adeca3b">&#9670;&#160;</a></span>access()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">curlHttp::emErrCode</a> curlHttp::access </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>type</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>和linux access函数一样，用来检查文件的可访问性 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">url[</td><td>I ]， 要访问的文件的路径 </td></tr>
    <tr><td class="paramname">type[</td><td>I ]， 检查的类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回OK ，否则返回错误代码 </dd></dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a6b200bd334596fb97137ebe61b6034e2">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00348">348</a> 行定义.</p>

</div>
</div>
<a id="a68ba399064b9b5f56c0d85fe407643b4" name="a68ba399064b9b5f56c0d85fe407643b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68ba399064b9b5f56c0d85fe407643b4">&#9670;&#160;</a></span>addUrl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::addUrl </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>url</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>指定URL </p>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a92213b2aa32dc9d1abce057005d56ab3">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00297">297</a> 行定义.</p>

</div>
</div>
<a id="a4c133a2aae1b9855feeaf9b859d321f0" name="a4c133a2aae1b9855feeaf9b859d321f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c133a2aae1b9855feeaf9b859d321f0">&#9670;&#160;</a></span>bufferSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::bufferSize </td>
          <td>(</td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4c8066770e383bad17dabe1fad804779">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00153">153</a> 行定义.</p>

</div>
</div>
<a id="a4637ba5bdafa422175855e699c4b4cc1" name="a4637ba5bdafa422175855e699c4b4cc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4637ba5bdafa422175855e699c4b4cc1">&#9670;&#160;</a></span>cd()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">curlHttp::emErrCode</a> curlHttp::cd </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>path</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>切换远程目录路径 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">path</td><td>， 路径字符串 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a7a9cd7da47b67cd365bc9060ffd91f46">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00356">356</a> 行定义.</p>

</div>
</div>
<a id="a896d85e83b36058f957a9988fa75f385" name="a896d85e83b36058f957a9988fa75f385"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a896d85e83b36058f957a9988fa75f385">&#9670;&#160;</a></span>del()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool curlHttp::del </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>rem</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>删除远程文件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rem[</td><td>I ] 远程文件名 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#aa40dbce4a27a4eda48c863eed681ec5c">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00285">285</a> 行定义.</p>

</div>
</div>
<a id="ac018be0b469a6a360472db8f4afa4fe5" name="ac018be0b469a6a360472db8f4afa4fe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac018be0b469a6a360472db8f4afa4fe5">&#9670;&#160;</a></span>download() <span class="overload">[1/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool curlHttp::download </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>dest</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>批量下载文件。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td></td></tr>
    <tr><td class="paramname">dest</td><td></td></tr>
    <tr><td class="paramname">autoRun</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回true, 否则返回false </dd></dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a5bcaea2ba4f416a19479b33c021d1088">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00214">214</a> 行定义.</p>

</div>
</div>
<a id="abd2cb7a335829c91d308e629e57d0fe6" name="abd2cb7a335829c91d308e629e57d0fe6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd2cb7a335829c91d308e629e57d0fe6">&#9670;&#160;</a></span>download() <span class="overload">[2/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::download </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>dest</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>批量下载文件，使用回调函数通知操作结果和过程 </p>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a68d1d4801f66115b8db3577ef2488a0b">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00233">233</a> 行定义.</p>

</div>
</div>
<a id="a275b22033e343e56d479525f9a142506" name="a275b22033e343e56d479525f9a142506"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a275b22033e343e56d479525f9a142506">&#9670;&#160;</a></span>download() <span class="overload">[3/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::download </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>buffer</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将数据下载到内存中 </p>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#adc6c882edb72e2b071088d08b248d4fa">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00192">192</a> 行定义.</p>

</div>
</div>
<a id="a46aabb0b12d38c092f592615f6ee9a07" name="a46aabb0b12d38c092f592615f6ee9a07"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46aabb0b12d38c092f592615f6ee9a07">&#9670;&#160;</a></span>download() <span class="overload">[4/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::download </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>dest</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, uint8_t *, size_t) &gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>下载操作函数。操作完成后使用回调函数通知操作结果 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cb,操作完成后的回调函数。这个函数用来通知操作结果，函数的原型如下：</td><td>bool fun( errCode err , size_t dataSize , const std::string&amp; fileStorePath ); </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#abbf6f4f25334a5d82fa9c58f05333ab9">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00174">174</a> 行定义.</p>

</div>
</div>
<a id="a21da1d59073f864299d4c9d54683d385" name="a21da1d59073f864299d4c9d54683d385"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21da1d59073f864299d4c9d54683d385">&#9670;&#160;</a></span>download() <span class="overload">[5/5]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool curlHttp::download </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>dest</em></span><span class="paramdefsep"> = </span><span class="paramdefval">&quot;&quot;</span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>下载文件操作 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from[</td><td>I ]源文件 </td></tr>
    <tr><td class="paramname">dest[</td><td>I ]目标文件 </td></tr>
    <tr><td class="paramname">autoRun[</td><td>I ]，自动开始执行操作 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>操作成功返回true，否则返回false </dd></dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a3f9d8e38826f754a709365f8890bab96">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00159">159</a> 行定义.</p>

</div>
</div>
<a id="a304fe385a4b2f0f38a893494de7ba827" name="a304fe385a4b2f0f38a893494de7ba827"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a304fe385a4b2f0f38a893494de7ba827">&#9670;&#160;</a></span>ls() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">curlHttp::emErrCode</a> curlHttp::ls </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>rst</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>列出远程目录内容 </p>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#ae5e67d4a2f534826e5493ed89ba450a3">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00336">336</a> 行定义.</p>

</div>
</div>
<a id="a4238eff714de9c44cb6aed9b5a0f5a1c" name="a4238eff714de9c44cb6aed9b5a0f5a1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4238eff714de9c44cb6aed9b5a0f5a1c">&#9670;&#160;</a></span>ls() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::ls </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; void(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;) &gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a13fcf3f28b7bbf58f83321e93fb7a600">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00342">342</a> 行定义.</p>

</div>
</div>
<a id="a7bf1cb79c4dc4484621de444d1f29b0d" name="a7bf1cb79c4dc4484621de444d1f29b0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bf1cb79c4dc4484621de444d1f29b0d">&#9670;&#160;</a></span>on_recv__()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::on_recv__ </td>
          <td>(</td>
          <td class="paramtype">const char *</td>          <td class="paramname"><span class="paramname"><em>data</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>len</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::shared_ptr&lt; std::ofstream &gt;</td>          <td class="paramname"><span class="paramname"><em>pofs</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00040">40</a> 行定义.</p>

</div>
</div>
<a id="a93b79ebe38efd6f8766f03f8c921bf32" name="a93b79ebe38efd6f8766f03f8c921bf32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93b79ebe38efd6f8766f03f8c921bf32">&#9670;&#160;</a></span>overtime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void wheels::curlHttp::overtime </td>
          <td>(</td>
          <td class="paramtype">long</td>          <td class="paramname"><span class="paramname"><em>seconds</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">final</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#abf692c0a9ad3c30b48580ffa37b92300">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<a id="a2a6c6114d060117099988de17487e174" name="a2a6c6114d060117099988de17487e174"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a6c6114d060117099988de17487e174">&#9670;&#160;</a></span>run() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::run </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a1596fd99e0831eb2ec2cabc4c712dee3">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00302">302</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d3/d55/classwheels_1_1curl_http_a2a6c6114d060117099988de17487e174_icgraph.png" border="0" usemap="#ad3/d55/classwheels_1_1curl_http_a2a6c6114d060117099988de17487e174_icgraph" alt=""/></div>
<map name="ad3/d55/classwheels_1_1curl_http_a2a6c6114d060117099988de17487e174_icgraph" id="ad3/d55/classwheels_1_1curl_http_a2a6c6114d060117099988de17487e174_icgraph">
<area shape="rect" title=" " alt="" coords="224,5,366,32"/>
<area shape="rect" href="../../d3/d55/classwheels_1_1curl_http.html#ad39618e4f910e9a9681cd76578ddfd3d" title=" " alt="" coords="5,5,176,32"/>
<area shape="poly" title=" " alt="" coords="208,21,176,21,176,16,208,16"/>
</map>
</div>

</div>
</div>
<a id="af9e5217a2b2110049993ce5729860e9a" name="af9e5217a2b2110049993ce5729860e9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9e5217a2b2110049993ce5729860e9a">&#9670;&#160;</a></span>run() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::run </td>
          <td>(</td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t, int, const std::string &amp;) &gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#ac59b73319c207e2584e1c83c31396f8e">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00326">326</a> 行定义.</p>

</div>
</div>
<a id="a007996079e967c2149e3062930e863c3" name="a007996079e967c2149e3062930e863c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a007996079e967c2149e3062930e863c3">&#9670;&#160;</a></span>setUser()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::setUser </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>acc</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>pswd</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置用户名和密码 </p>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a3c4fdddfdaf3ede63c2e888a70e04ef5">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00291">291</a> 行定义.</p>

</div>
</div>
<a id="adbd8973f289389753695f519d1a892eb" name="adbd8973f289389753695f519d1a892eb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adbd8973f289389753695f519d1a892eb">&#9670;&#160;</a></span>size()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t curlHttp::size </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>file</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>读取远程文件的文件大小 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">file[</td><td>I ] 文件路径 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回文件大小 </dd></dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a5f1bf441284256b7f2799a4885345825">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00362">362</a> 行定义.</p>

</div>
</div>
<a id="a6ad84e779905dd36729134990ed315e4" name="a6ad84e779905dd36729134990ed315e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ad84e779905dd36729134990ed315e4">&#9670;&#160;</a></span>upload() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::upload </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>file</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t)&gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a5a882fb4e07e8471ed2392c8914c5f23">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00278">278</a> 行定义.</p>

</div>
</div>
<a id="aabdbb4e62c62eec227a2be7fcbbb9897" name="aabdbb4e62c62eec227a2be7fcbbb9897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aabdbb4e62c62eec227a2be7fcbbb9897">&#9670;&#160;</a></span>upload() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool curlHttp::upload </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../df/d8d/namespacewheels.html#a17042f775c3493c1f9592ca7883dbd5e">ArrayString</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>from</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>批量上传操作 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from[</td><td>I ] </td></tr>
    <tr><td class="paramname">dest[</td><td>I ] </td></tr>
    <tr><td class="paramname">autoRun[</td><td>I ] </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a0af74d6a59403a3270013c71d5445114">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00271">271</a> 行定义.</p>

</div>
</div>
<a id="a869dd5ae61ecc763d19a2b316b82e021" name="a869dd5ae61ecc763d19a2b316b82e021"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a869dd5ae61ecc763d19a2b316b82e021">&#9670;&#160;</a></span>upload() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool curlHttp::upload </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>file</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>remote_file</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>上传文件到服务器 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">file[</td><td>I ], 本地文件 </td></tr>
    <tr><td class="paramname">remote_file[</td><td>I ], 远程文件 </td></tr>
    <tr><td class="paramname">autoRun[</td><td>I ]，调用后是否自动运行，如果不是自动运行任务将在后台挂起 </td></tr>
    <tr><td class="paramname">cb[</td><td>I ], 进度回调函数用来通知上传进度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功操作返回true，否则返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>目前仅仅支持自动运行 </dd></dl>

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#ad9b1abef0edcb8552d170cc2b5034477">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00254">254</a> 行定义.</p>

</div>
</div>
<a id="a86eb9847d8ec4cd0cee921107d12686d" name="a86eb9847d8ec4cd0cee921107d12686d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86eb9847d8ec4cd0cee921107d12686d">&#9670;&#160;</a></span>upload() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void curlHttp::upload </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>file</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>remote_file</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::function&lt; bool(<a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a4caa50c3e01e22c71bb52d16657c48d0">emErrCode</a>, size_t)&gt;</td>          <td class="paramname"><span class="paramname"><em>cb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>autoRun</em></span><span class="paramdefsep"> = </span><span class="paramdefval">true</span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="../../d7/d64/structwheels_1_1i_file_service.html#a7dbd584d9b1b67c3ad196d184aa50a5a">wheels::iFileService</a>.</p>

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00262">262</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">友元及相关符号说明</h2>
<a id="af6b3ef69aa0868252bc8deeefa960558" name="af6b3ef69aa0868252bc8deeefa960558"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6b3ef69aa0868252bc8deeefa960558">&#9670;&#160;</a></span>curlHttp_write_callback</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">size_t curlHttp_write_callback </td>
          <td>(</td>
          <td class="paramtype">char *</td>          <td class="paramname"><span class="paramname"><em>ptr</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>size</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t</td>          <td class="paramname"><span class="paramname"><em>nmemb</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *</td>          <td class="paramname"><span class="paramname"><em>obj</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a> 第 <a class="el" href="../../d3/de0/http_file_8cpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a0b5f19f4956965fdb7dafb3f23b1cafa" name="a0b5f19f4956965fdb7dafb3f23b1cafa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b5f19f4956965fdb7dafb3f23b1cafa">&#9670;&#160;</a></span>DEFAULT_BUFFER_SIZE</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const long curlHttp::DEFAULT_BUFFER_SIZE = 1024 * 1024 * 5</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00028">28</a> 行定义.</p>

</div>
</div>
<a id="a7e90ecf12420b8445e9c5cc0d6bf6664" name="a7e90ecf12420b8445e9c5cc0d6bf6664"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e90ecf12420b8445e9c5cc0d6bf6664">&#9670;&#160;</a></span>DEFAULT_OVERTIME</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const long curlHttp::DEFAULT_OVERTIME = -1</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<a id="ae5bf97a9d7c213107a2a765f9a47ce42" name="ae5bf97a9d7c213107a2a765f9a47ce42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5bf97a9d7c213107a2a765f9a47ce42">&#9670;&#160;</a></span>DEFAULT_THD_COUNT</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const int curlHttp::DEFAULT_THD_COUNT = 4</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a> 第 <a class="el" href="../../db/df9/http_file_8hpp_source.html#l00029">29</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/details/<a class="el" href="../../db/df9/http_file_8hpp_source.html">httpFile.hpp</a></li>
<li>src/details/<a class="el" href="../../d3/de0/http_file_8cpp_source.html">httpFile.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
